package it.diego.projecttwo;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class RelativeDemoActivity extends Activity implements OnClickListener{

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.relative_demo);
		View exitButton = findViewById(R.id.exit_button);
		exitButton.setOnClickListener(this);
     }
    public void onClick(View v) 
    {
		switch (v.getId()) 
		{ 
		      case R.id.exit_button:
				finish();
				break;
		}
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.relative_demo, menu);
        return true;
    }
}
